#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include "math/mymathfunction.h"

int main(int argc, char *argv[])
{
//    if (argc < 3){
//        printf("Usage: %s base exponent \n", argv[0]);
//        return 1;
//    }
//    double base = atof(argv[1]);
//    int exponent = atoi(argv[2]);
    double base = 3.14;
    int exponent = 2;
    std::cout<<"Input the nums to calculate "<<std::endl;
    std::cin>>base>>exponent;    
    double result = power(base, exponent);
    printf("%g ^ %d is %g\n", base, exponent, result);
    return 0;
}
